<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\hotel\validate;

use app\admin\model\RouteModel;
use think\Validate;

class ReserveValidate extends Validate
{
    protected $rule = [
        'name'  => 'require',
        'tel'  =>  'require',
        'room_num'=>'require',
        'checkin_time'  => 'require',
        'departure_time'  =>  'require',
        'price'=>'require',
        'user_id'  => 'require',
        'order_num'  =>  'require',

    ];
    protected $message = [
        'name.require' => '联系人不能为空',
        'tel.require'  => '联系方式不能为空',
        'room_num.require'  => '房间数量不能为空',
        'checkin_time.require' => '入住时间不能为空',
        'departure_time.require'  => '离店时间不能为空',
        'price.require'  => '房间价格不能为空',
        'user_id.require'  => '用户操作异常',
        'order_num.require'  => '订单编号不能为空',
    ];






}